package com.joymeter.data.service.impl;

import com.joymeter.common.config.AppConfig;
import com.joymeter.common.utils.HttpClient;
import com.joymeter.data.service.DruidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName DruidServiceImpl
 * @Description TODO
 * 操作Druid数据库
 * @Author liang
 * @Date 2018/8/15 18:35
 * @Version 1.0
 **/
@Service
public class DruidServiceImpl implements DruidService {
    @Autowired
    private AppConfig appConfig;

    @Override
    public void sendToDataInfo(String data) throws Exception {
        String url = appConfig.getDataInfoURL();
        HttpClient.sendPost(url,data);
    }
}
